Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github workflow: enable workflow approval #632

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented Dec 7, 2023

Allow to run GitHub workflows for Pull Requests that have the ok-to-test label.

Fixes #631

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Great to have more autonomy for etcd-io org members to be enable to trigger and retry workflows, thanks @ivanvc.

Edit: Rather ironically this pull request has 4 workflows that need maintainer approval 😆

- labeled
- synchronize
branches:
- main
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: there is no main branch in bbolt, instead it's master.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duh, you're right.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps in future we should align the branch to main @ahrtr? I believe the procedure is pretty straightforward in GitHub. It makes sense to try and use same across all sig-etcd subprojects if possible I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can leave both main and master in the meantime, let me know what you think. So, when we rename the branch to main there's not gonna be a dependency here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps in future we should align the branch to main

OK, let me do it on weekend.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @jmhbnz @serathius @wenjiaswe @fuweid @tjungblu @Elbehery

If there is no any objection, I will rename the master to main on weekend.

Reference: https://www.git-tower.com/learn/git/faq/git-rename-master-to-main

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also do it easily from the GitHub repository settings page (ref: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch)

Screenshot from 2023-12-08 12-09-56(1)
Screenshot from 2023-12-08 12-10-11

If it's fine with you, I'll revert my last change and set the branch name to main, and you can merge after you have renamed the main branch ✌️

@ivanvc ivanvc force-pushed the enable-github-workflow-approval-via-ok-to-test-label branch from 17e15d5 to 13d4d08 Compare December 8, 2023 19:03
@ivanvc ivanvc requested a review from ahrtr December 8, 2023 19:04
Allow to run GitHub workflows for Pull Requests that have the ok-to-test
label.

Signed-off-by: Ivan Valdes <[email protected]>
@ivanvc ivanvc force-pushed the enable-github-workflow-approval-via-ok-to-test-label branch from 13d4d08 to bdf8eea Compare December 8, 2023 21:17
@ahrtr ahrtr deleted the branch etcd-io:master December 12, 2023 10:26
@ahrtr ahrtr closed this Dec 12, 2023
@ahrtr
Copy link
Member

ahrtr commented Dec 12, 2023

@ivanvc could you please submit a new PR? The PR is automatically closed after I renamed the master to main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Enable GitHub workflows for PRs with the ok-to-test label
3 participants